<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Goods
 * @package App\Models
 * @version November 4, 2017, 6:32 am UTC
 *
 * @property string image
 * @property string sn
 * @property string name
 * @property string remark
 * @property integer number
 * @property decimal price
 * @property decimal average_price
 * @property decimal rate
 * @property decimal discounts
 */
class Goods extends Model
{
    use SoftDeletes;

    public $table = 'goods';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'image',
        'sn',
        'name',
        'remark',
        'number',
        'price',
        'average_price',
        'rate',
        'discounts'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'image' => 'string',
        'sn' => 'string',
        'name' => 'string',
        'remark' => 'string',
        'number' => 'integer'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        
    ];

    
}
